<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\index\controller;
use think\Controller;
use think\Request;
use think\facade\Cookie;
/**
 * Description of Logout
 *
 * @author hasee
 */
class Logout extends Controller{
    //put your code here
    public function index(){
        if(Cookie::has('uid')){
            Cookie::delete("uid");
            Cookie::delete("uname");
        }
        return $this->redirect("/index/home/index");
    }
}
